Skip to content

Raise solana-compute-budget to the version kite 0.7 builds against - #221

Open
mikemaccana wants to merge 1 commit into
mainfrom
claude/compute-budget-4-3-kite-0-7
Open

mikemaccana wants to merge 1 commit into
mainfrom
claude/compute-budget-4-3-kite-0-7

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

Six Anchor v1 crates declared solana-compute-budget = "4.2" under a comment saying it was "the
same version solana-kite 0.6 builds against".
#219 moved every example to kite
0.7.0, which declares solana-compute-budget ^4.3, so both the pin and its stated reason described
a kite release that is no longer in the tree.

litesvm solana-compute-budget
solana-kite 0.6.1 ^0.16.0 ^4.2
solana-kite 0.7.0 ^0.18.1 ^4.3

Nothing was broken — the floor was

^4.2 and ^4.3 unify to one 4.x, and all six resolve to 4.3.2 either way, which is why their
suites pass on main today. What was wrong is the declared floor: sitting below what kite asks for
leaves room for a lockfile or a cargo update --precise to drop under the version kite supports.
That is the same hazard the litesvm floor bump in
#218 closed, and the same reason
that bump was the load-bearing part of it rather than tidiness.

The three examples with an Anchor v2 counterpart carrying this pin — hello-solana, options,
order-book — already declare 4.3 there, because the v2 copies moved to kite 0.7 first. So 4.3
is not a new choice; this brings the v1 copies to the value their v2 siblings have had, and the nine
declarations across the repository now read alike.

Files

  • basics/hello-solana/anchor-v1/programs/hello-solana/Cargo.toml
  • finance/options/anchor-v1/programs/options/Cargo.toml
  • finance/order-book/anchor-v1/programs/order-book/Cargo.toml
  • compression/cnft-burn/anchor-v1/programs/cnft-burn/Cargo.toml
  • compression/cutils/anchor-v1/programs/cutils/Cargo.toml
  • compression/cnft-vault/anchor-v1/programs/cnft-vault/Cargo.toml

Each comment now names kite 0.7 rather than 0.6.

CONTRIBUTING.md said the two Anchor copies send transactions "through solana-kite: 0.6 for Anchor
v1, 0.7 for Anchor v2". It is 0.7 for both.

Testing

A declaration change that resolves to the same version, so the risk is a resolution surprise rather
than a behaviour change — resolution is what I checked. With each project's untracked Cargo.lock
deleted and regenerated:

project solana-compute-budget solana-kite
basics/hello-solana/anchor-v1 4.3.2 0.7.0
finance/options/anchor-v1 4.3.2 0.7.0
finance/order-book/anchor-v1 4.3.2 0.7.0
compression/cnft-burn/anchor-v1 4.3.2 0.7.0
compression/cutils/anchor-v1 4.3.2 0.7.0
compression/cnft-vault/anchor-v1 4.3.2 0.7.0

One version of each, in all six. compression/cnft-burn/anchor-v1 (2 tests) and
basics/hello-solana/anchor-v1 (1 test) then build with cargo build-sbf and pass end to end. CI
covers the other four.

CHANGELOG.md is left alone — its kite 0.6.1 and litesvm 0.16.0 references are history and correct.


Generated by Claude Code

Six Anchor v1 crates declared `solana-compute-budget = "4.2"` under a
comment saying it was the same version solana-kite 0.6 builds against.
#219 moved every example to kite 0.7.0, which declares
`solana-compute-budget ^4.3`, so both the pin and its stated reason were
describing a kite release no longer in the tree.

Nothing was broken by it: `^4.2` and `^4.3` unify to one 4.x, and all
six resolve to 4.3.2 either way, which is why their suites pass on main.
What was wrong is the floor. A declared floor below what kite asks for
leaves room for a lockfile or a `cargo update --precise` to drop under
the version kite supports - the same hazard the litesvm floor bump in
#218 closed.

The three examples that have an Anchor v2 counterpart with this pin -
hello-solana, options, order-book - already declare 4.3 there, since the
v2 copies moved to kite 0.7 first. This brings the v1 copies to the same
value, so the nine declarations across the repository now read alike.

CONTRIBUTING.md said the two Anchor copies send transactions "through
solana-kite: 0.6 for Anchor v1, 0.7 for Anchor v2". It is 0.7 for both.

Verified by resolution, since that is what changed: with each project's
lockfile deleted and regenerated, all six resolve a single
solana-compute-budget 4.3.2 alongside kite 0.7.0. compression/cnft-burn
and basics/hello-solana then build and pass end to end.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YTTjefTz2Kbj8t5qg77kXg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants